<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>jsSring对象</title>
</head>
<body>
<script>
  var s1 = new String("hello");
  var s2 = "world";


  //字符串中查找字符
  s2.indexOf("0");
  s2.lastIndexOf("0");
  //返回字符的位置
  s2.charAt(0);
  s2.charCodeAt(0);
  //截取字符串
</script>
</body>
</html>